package com.tianyuan.lims.utils;

public class SqlUtils {
    /**
     * 生成 IN 查询的占位符
     */
    public static String getPlaceholders(int size) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < size; i++) {
            if (i > 0) {
                sb.append(",");
            }
            sb.append("?");
        }
        return sb.toString();
    }
}
